package com.hansming.bss.modules.sfc.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hansming.bss.common.service.CrudService;
import com.hansming.bss.modules.sfc.dao.CarExtrDao;
import com.hansming.bss.modules.sfc.entity.CarExtr;

/**
 * 房车额外信息Service
 * @author Hansming
 * @version 2017-09-18
 */
@Service
@Transactional(readOnly = true)
public class CarExtrService extends CrudService<CarExtrDao,CarExtr> {
	
	@Autowired
	private CarExtrDao carExtrDao;
	
	public CarExtr getByCarid(String carid){
		return carExtrDao.getByCarid(carid);
	}

	//根据id存入多张图片
	public void savephotos(CarExtr carextr){
		 carExtrDao.savephotos(carextr);		
	}
	@Transactional(readOnly = false)
	public void saveService(String carinfoid,String serviceid){
		carExtrDao.saveService(carinfoid,serviceid);
	}
	
}
